home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 4 / Mac Giga-ROM 4.0 - 1993.toast / FILES / HYP / J-M / Kids El Verbo Simple.cpt / El Verbo Simple 1.1 / stack.txt < prev   
Text File  |  1990-11-11  |  5KB  |  161 lines

  1. -- stack: in.1
  2. -- format: 8 (HyperCard 1)
  3. -- flags: 0x1000 (none)
  4. -- protect password hash: 0
  5. -- maximum user level: 5 (scripting)
  6. -- window: Rect(x1=0, y1=0, x2=0, y2=0)
  7. -- screen: Rect(x1=0, y1=0, x2=0, y2=0)
  8. -- card dimensions: w=0 h=0
  9. -- scroll: x=0 y=0
  10. -- background count: 5
  11. -- first background id: 2629
  12. -- card count: 269
  13. -- first card id: 73808
  14. -- list block id: 78382
  15. -- print block id: 3363
  16. -- font table block id: 0
  17. -- style table block id: 0
  18. -- free block count: 0
  19. -- free size: 0 bytes
  20. -- total size: 211008 bytes
  21. -- stack block size: 6144 bytes
  22. -- created by hypercard version: 0x01228000
  23. -- compacted by hypercard version: 0x01228000
  24. -- modified by hypercard version: 0x01228000
  25. -- opened by hypercard version: 0x01228000
  26. -- patterns[0]: 0x0000000000000000
  27. -- patterns[1]: 0x0000220000002200
  28. -- patterns[2]: 0x8800220088002200
  29. -- patterns[3]: 0xCC003300CC003300
  30. -- patterns[4]: 0xCC883322CC883322
  31. -- patterns[5]: 0xFF00FF00FF00FF00
  32. -- patterns[6]: 0xEECCBB33EECCBB33
  33. -- patterns[7]: 0xFFCCFF33FFCCFF33
  34. -- patterns[8]: 0xFFEEFFBBFFEEFFBB
  35. -- patterns[9]: 0xFFFFFFBBFFFFFFBB
  36. -- patterns[10]: 0x8010022001084004
  37. -- patterns[11]: 0xFFFFFFFFFFFFFFFF
  38. -- patterns[12]: 0x8822882288228822
  39. -- patterns[13]: 0x1122448811224488
  40. -- patterns[14]: 0xC4800C6843023026
  41. -- patterns[15]: 0xB130031BD8C00C8D
  42. -- patterns[16]: 0xAA00AA00AA00AA00
  43. -- patterns[17]: 0x8822552288225522
  44. -- patterns[18]: 0x8855225588552255
  45. -- patterns[19]: 0x77DD77DD77DD77DD
  46. -- patterns[20]: 0x8000000000000000
  47. -- patterns[21]: 0xAA55AA55AA55AA55
  48. -- patterns[22]: 0x5555555555555555
  49. -- patterns[23]: 0x8244394482010101
  50. -- patterns[24]: 0x8814224188412214
  51. -- patterns[25]: 0x8080413E080814E3
  52. -- patterns[26]: 0x22048C7422179810
  53. -- patterns[27]: 0xBE808808EB088880
  54. -- patterns[28]: 0x25C8328964244C92
  55. -- patterns[29]: 0xA29C41BE2AC914EB
  56. -- patterns[30]: 0x40A00000040A0000
  57. -- patterns[31]: 0x8040200002040800
  58. -- patterns[32]: 0xAA00800088008000
  59. -- patterns[33]: 0xFF80808080808080
  60. -- patterns[34]: 0x081C22C180010204
  61. -- patterns[35]: 0xFF808080FF080808
  62. -- patterns[36]: 0xF87422478F172271
  63. -- patterns[37]: 0xBF00BFBFB0B0B0B0
  64. -- patterns[38]: 0xFF7FBE5DA2418000
  65. -- patterns[39]: 0xFAF5FAF5A050A050
  66. -- checksum: 0x0
  67. ----- HyperTalk script -----
  68. on openStack
  69.   hide message box
  70.   hide menubar
  71. end openStack
  72.  
  73. on SetCard
  74.   Global PrevTense
  75.   if the number of buttons>2 then
  76.     if the hilite of card button "Irregular 3" is true then
  77.       show background field "Irregular Participle"
  78.     else
  79.       hide background field "Irregular Participle"
  80.     end if
  81.     if the hilite of card button "Irregular 1" is true and background field "Tense" is "Present" then
  82.       DoIrregular Present
  83.     else
  84.       if the hilite of card button "Irregular 2" is true and background field "Tense" is "Preterite" then
  85.         DoIrregular Preterite
  86.       else
  87.         RefreshScreen
  88.         put Normal into PrevTense
  89.       end if
  90.     end if
  91.   end if
  92. end SetCard
  93.  
  94. on DoHighlight Menu, MenuButton
  95.   Global MenuChoice
  96.   get ((the mouseV - item 2 of the rect of bg field Menu) div 12) + 1
  97.   put line it of background field Menu into MenuChoice
  98.   get offset(return & MenuChoice & return, background field Menu) + 1
  99.   Select char it to length(MenuChoice) + it of background field Menu
  100.   wait 5
  101.   hide background field Menu
  102.   set hilite of bg button MenuButton to false
  103.   send ManageResponse to background field Menu
  104. end DoHighlight
  105.  
  106. on LocateMouse Menu, MenuButton
  107.   if the visible of background field Menu is true then
  108.     put false into Stop
  109.     repeat while the Mouseh>=the left of bg field Menu and the mouseh<=the right of bg field Menu and the mousev>=the top of bg field Menu and the mousev<=the bottom of bg field Menu and Stop is false
  110.       if the mouse is up then
  111.         DoHighlight Menu, MenuButton
  112.         put true into Stop
  113.       end if
  114.     end repeat
  115.     hide background field Menu
  116.     set hilite of background button MenuButton to false
  117.   end if
  118. end LocateMouse
  119.  
  120. on PutChoices Menu, MenuItems, MenuButton
  121.   lock screen
  122.   show background field Menu
  123.   put MenuItems into background field Menu
  124.   set hilite of bg button MenuButton to true
  125.   unlock screen
  126. end PutChoices
  127.  
  128. on FormVerb Tense
  129.   put Tense into background field "SubjectRef"
  130.   Conjugate background field Verb, Tense, Normal
  131.   Refreshscreen
  132. end FormVerb
  133.  
  134. on DoIrregular Tense
  135.   Global PrevTense
  136.   if PrevTense is not Tense then
  137.     lock screen
  138.     Refreshscreen
  139.     unlock screen
  140.   end if
  141.   repeat with Subject=1 to 6
  142.     set cursor to busy
  143.     get Tense&Subject
  144.     show background field it
  145.   end repeat
  146.   put Tense into PrevTense
  147. end DoIrregular
  148.  
  149. on RefreshScreen
  150.   Global PrevTense
  151.   if PrevTense is "Present" or PrevTense is "Preterite" then
  152.     repeat with Subject=1 to 6
  153.       set cursor to busy
  154.       get PrevTense&Subject
  155.       hide background field it
  156.     end repeat
  157.   end if
  158. end RefreshScreen
  159.  
  160.  
  161.